package com.soteind.data.entities;

import com.soteind.database.entities.UserEntity;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import javax.persistence.*;

@Entity
@Table(name = "usuario")
@NamedQueries(value = {
    @NamedQuery(name = "Usuario.findByUsuario", query = "SELECT u FROM Usuario u WHERE u.usrUsuario = ?1"),
    @NamedQuery(name = "Usuario.findByCorreo", query = "SELECT u FROM Usuario u WHERE u.correoe = ?1")})
public class Usuario implements Serializable, UserEntity {

    public static final String QUERY_NAME_FINDBYUSUARIO = "Usuario.findByUsuario";
    public static final String QUERY_NAME_FINDBYCORREOE = "Usuario.findByCorreo";
    public static final String USUARIO_TIPOID_CC = "CC";
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "idusuario")
    private Integer idusuario;
    @Basic(optional = false)
    @Column(name = "contrasena")
    private String contrasena;
    @Basic(optional = false)
    @Column(name = "usr_usuario")
    private String usrUsuario;
    @Basic(optional = false)
    @Column(name = "usr_appellidos")
    private String usrAppellidos;
    @Basic(optional = false)
    @Column(name = "usr_nombres")
    private String usrNombres;
    @Column(name = "usr_identificacion")
    private String usrIdentificacion;
    @Column(name = "usr_tipoidentificacion")
    private String usrTipoidentificacion;
    @Lob
    @Column(name = "otrotipousuario")
    private String otrotipousuario;
    @Basic(optional = false)
    @Column(name = "correoe")
    private String correoe;
    @Basic(optional = false)
    @Column(name = "modificado")
    @Temporal(value = TemporalType.TIMESTAMP)
    private Date modificado;
    @Basic(optional = false)
    @Column(name = "activo")
    private boolean activo;
    @Basic(optional = false)
    @Column(name = "fecharegistro")
    @Temporal(value = TemporalType.TIMESTAMP)
        private Date fecharegistro;
    /*
    @JoinTable(name = "usuario_usa_rolusuario", joinColumns = {
        @JoinColumn(name = "usr_idusuario", referencedColumnName = "idusuario")}, inverseJoinColumns = {
        @JoinColumn(name = "rol_idrolusuario", referencedColumnName = "idrolusuario")})    
    @ManyToMany(fetch = FetchType.LAZY)    
    private List<Rolusuario> rolusuarioList;
    @JoinColumn(name = "ciudad_idciudad", referencedColumnName = "idciudad")
    @ManyToOne(optional = false, fetch = FetchType.LAZY)
    private Ciudad ciudad;
    @JoinColumn(name = "tipoorientacion_idtipoorientacion", referencedColumnName = "idtipoorientacion")
    @ManyToOne(optional = false, fetch = FetchType.LAZY)
    private Tipoorientacion tipoorientacion;
    @JoinColumn(name = "tipousuario_idtipousuario", referencedColumnName = "idtipousuario")
    @ManyToOne(optional = false, fetch = FetchType.LAZY)
    private Tipousuario tipousuario;
    */

    public Usuario() {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public Usuario(Integer idusuario) {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public Usuario(Integer idusuario, String contrasena, String usrUsuario, String usrAppellidos, String usrNombres, String correoe, Date modificado, boolean activo, Date fecharegistro) {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public Integer getIdusuario() {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public void setIdusuario(Integer idusuario) {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public String getContrasena() {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public void setContrasena(String contrasena) {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public String getUsrUsuario() {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public void setUsrUsuario(String usrUsuario) {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public String getUsrAppellidos() {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public void setUsrAppellidos(String usrAppellidos) {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public String getUsrNombres() {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public void setUsrNombres(String usrNombres) {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public String getUsrIdentificacion() {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public void setUsrIdentificacion(String usrIdentificacion) {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public String getUsrTipoidentificacion() {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public void setUsrTipoidentificacion(String usrTipoidentificacion) {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public String getOtrotipousuario() {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public void setOtrotipousuario(String otrotipousuario) {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public String getCorreoe() {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public void setCorreoe(String correoe) {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public Date getModificado() {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public void setModificado(Date modificado) {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public boolean getActivo() {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public void setActivo(boolean activo) {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public Date getFecharegistro() {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public void setFecharegistro(Date fecharegistro) {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }
    
    /*
    public List<Rolusuario> getRolusuarioList() {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public void setRolusuarioList(List<Rolusuario> rolusuarioList) {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }
	*/
    public int hashCode() {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public boolean equals(Object object) {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public String toString() {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public String getFullName() {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }
    /*
    public Ciudad getCiudad() {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public void setCiudad(Ciudad ciudad) {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }
	
    public Tipoorientacion getTipoorientacion() {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public void setTipoorientacion(Tipoorientacion tipoorientacion) {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public Tipousuario getTipousuario() {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public void setTipousuario(Tipousuario tipousuario) {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }
    */
}
